package com.myhouse.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.myhouse.biz.StreetBiz;
import com.myhouse.dao.StreetDao;
import com.myhouse.entity.Street;

@Service("streetBiz")
public class StreetBizImpl implements StreetBiz{

	@Autowired
	private StreetDao streetDao;
	
	public boolean insertStreet(Street street) {
		return streetDao.insertStreet(street);
	}

	public boolean deleteStreet(int id) {
		return streetDao.deleteStreet(id);
	}

	public boolean updateStreet(Street street) {
		return streetDao.updateStreet(street);
	}

	public List<Street> getAll() {
		return streetDao.getAll();
	}
	
}
